<?php $this->load->view("common/header") ?>
<script type="text/javascript">
$(function() {
	//	$( "#job_start" ).datepicker({ dateFormat: 'yy-mm-dd' });
	});
</script>
<body>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="left" valign="top"><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top"  id="mainContent">  
	  <div id="crum">
<?php echo $crum ?>
</div><br>

	  


  
  <table width="100%" border="0" cellpadding="5" cellspacing="0" rules="groups">
    <tr class="tbl_row_header">
    <td align="left"><?php echo $_SESSION['label1'] ?></td>
    <td align="left">Client</td>
    <td align="left">Job Subject</td>
    <td align="left">Type/Pri</td>
    <td align="left">Allocated User</td>
    </tr>
<?php foreach($jobs as $job) { 

?>
  <tr class="tbl_row" onClick="gotoJob('<?php echo $job['id'] ?>')">
    <td width="190" class="item_lbl" align="left" ><?php echo $job['id'] ?></td>
    <td width="248" class="tdClickable"  align="left" ><?php echo $job['company_name'] ?></td>
    <td width="341" class="tdClickable"  align="left" ><?php echo $job['job_subject'] ?></td>
    <td width="248"  class="tdClickable" align="left" ><?php echo $job['job_type'] ?> / <?php echo $job['job_pri'] ?></td>
    <td width="242"  class="tdClickable"  align="left" ><?php echo $job['firstname']." ".$job['lastname']   ?></td>
    </tr>


  <?php } ?>
</table>
  
  </td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
